package com.lin.spring.cloud.aciton;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {
    @GetMapping("/hello/{firstName}/{lastName}")
    public String hello(@PathVariable String firstName,@PathVariable String lastName) {
        return "{\"message\":\"hello!" + firstName + "," + lastName + "\"}";
    }
}
